package com.ruoyi.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 店铺评价对象 t_merchant_message
 * 
 * @author ruoyi
 * @date 2024-10-26
 */
public class TMerchantMessage extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long id;

    /** 店铺id */
    @Excel(name = "店铺id")
    private String merchantId;

    /** 用户名称 */
    @Excel(name = "用户名称")
    private String userName;

    /** 用户编码 */
    @Excel(name = "用户编码")
    private String userId;

    /** 评价 */
    @Excel(name = "评价")
    private String content;

    /** 评分 */
    @Excel(name = "评分")
    private String rating;

    /** 父节点 */
    @Excel(name = "父节点")
    private String pid;

    /** 类型 0 主节点 1 回复 */
    @Excel(name = "类型 0 主节点 1 回复")
    private String type;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date addTime;

    /** 审批状态 */
    @Excel(name = "审批状态")
    private String status;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setMerchantId(String merchantId) 
    {
        this.merchantId = merchantId;
    }

    public String getMerchantId() 
    {
        return merchantId;
    }
    public void setUserName(String userName) 
    {
        this.userName = userName;
    }

    public String getUserName() 
    {
        return userName;
    }
    public void setUserId(String userId) 
    {
        this.userId = userId;
    }

    public String getUserId() 
    {
        return userId;
    }
    public void setContent(String content) 
    {
        this.content = content;
    }

    public String getContent() 
    {
        return content;
    }
    public void setRating(String rating) 
    {
        this.rating = rating;
    }

    public String getRating() 
    {
        return rating;
    }
    public void setPid(String pid) 
    {
        this.pid = pid;
    }

    public String getPid() 
    {
        return pid;
    }
    public void setType(String type) 
    {
        this.type = type;
    }

    public String getType() 
    {
        return type;
    }
    public void setAddTime(Date addTime) 
    {
        this.addTime = addTime;
    }

    public Date getAddTime() 
    {
        return addTime;
    }
    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("merchantId", getMerchantId())
            .append("userName", getUserName())
            .append("userId", getUserId())
            .append("content", getContent())
            .append("rating", getRating())
            .append("pid", getPid())
            .append("type", getType())
            .append("addTime", getAddTime())
            .append("status", getStatus())
            .toString();
    }
}
